﻿# -*- coding:utf-8 -*-
#
try:
    from django.conf.urls import patterns, url, include
except:
    from django.conf.urls.defaults import *

#pcadmin.views
urlpatterns = patterns('pcadmin.views',
    # доступ для агентов
    url(r'^$',                  'pcadmin_index',        name="pcadmin_index"),
    url(r'^get$',               'get_task_json',        name="get_task_json"),
    url(r'^log$',               'set_log_message',      name="set_log_message"),
    url(r'^ack$',               'set_task_acknowledge', name='set_task_acknowledge'),
    url(r'^getapid$',               'get_apid_json',        name='get_apid_json'),
    # для браузера
    url(r'^agent/list/$', 'agent_list', name='agent_list'),
    url(r'^agent/(\d+)/$', 'agent_details', name='agent_details'),
    url(r'^log/list/(\d+)/$', 'get_loglist_ajax', name='get_loglist_ajax'),
    url(r'^log/(\d+)/$', 'log_details', name='log_details'),
    url(r'^log/taskqueue/(\d+)/$', 'get_task_loglist_ajax', name='get_task_loglist_ajax'),
    url(r'^task/list/$',     'task_list',    name='task_list'),
    url(r'^task/crearte/(\d+)/$',     'create_task_queue',    name='create_task_queue'),
    url(r'^task/(\d+)/$',     'task_details',    name='task_details'),
    
    url(r'^taskqueue/(\d+)/$',     'task_queue_item_details',    name='task_queue_item_details'),
    
    url(r'^modules/remotedesktopviewer/upload/$',     'module_rdv_upload',    name='module_rdv_upload'),
    url(r'^modules/remotedesktopviewer/view/$',     'module_rdv_view',    name='module_rdv_view'),
    
    #url(r'^task/pm/$',          'presentmanager_task_send',          name="pm_task_send"),
    
)
